<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <meta http-equiv="X-UA-Compatible" content="IE=edge" >
  <title>流言终结者- Flutter和RN谁才是更好的跨端开发方案？ | Grx Blog</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="流言终结者- Flutter和RN谁才是更好的跨端开发方案？论坛上很多小伙伴关心为什么闲鱼选择了Flutter而不选择其他跨端方案？站在质量的角度，高性能是一个很重的因素，我们使用Flutter重写了宝贝详情页之后，对比了Flutter和Native详情页的性能表现，结论是中高端机型上Flutter和Native不相上下，在低端机型上，Flutter会比Native更加的流畅，其实闲鱼团队在使用F">
<meta property="og:type" content="article">
<meta property="og:title" content="流言终结者- Flutter和RN谁才是更好的跨端开发方案？">
<meta property="og:url" content="http://yoursite.com/2018/09/17/流言终结者- Flutter和RN谁才是更好的跨端开发方案？/index.html">
<meta property="og:site_name" content="Grx Blog">
<meta property="og:description" content="流言终结者- Flutter和RN谁才是更好的跨端开发方案？论坛上很多小伙伴关心为什么闲鱼选择了Flutter而不选择其他跨端方案？站在质量的角度，高性能是一个很重的因素，我们使用Flutter重写了宝贝详情页之后，对比了Flutter和Native详情页的性能表现，结论是中高端机型上Flutter和Native不相上下，在低端机型上，Flutter会比Native更加的流畅，其实闲鱼团队在使用F">
<meta property="og:image" content="https://user-gold-cdn.xitu.io/2018/9/10/165c207777544a65?imageView2/0/w/1280/h/960/ignore-error/1">
<meta property="og:image" content="https://user-gold-cdn.xitu.io/2018/9/10/165c207772041f18?imageView2/0/w/1280/h/960/ignore-error/1">
<meta property="og:image" content="https://user-gold-cdn.xitu.io/2018/9/10/165c207776cfb444?imageView2/0/w/1280/h/960/ignore-error/1">
<meta property="og:image" content="https://user-gold-cdn.xitu.io/2018/9/10/165c207776de1eb1?imageView2/0/w/1280/h/960/ignore-error/1">
<meta property="og:updated_time" content="2018-09-18T03:18:00.200Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="流言终结者- Flutter和RN谁才是更好的跨端开发方案？">
<meta name="twitter:description" content="流言终结者- Flutter和RN谁才是更好的跨端开发方案？论坛上很多小伙伴关心为什么闲鱼选择了Flutter而不选择其他跨端方案？站在质量的角度，高性能是一个很重的因素，我们使用Flutter重写了宝贝详情页之后，对比了Flutter和Native详情页的性能表现，结论是中高端机型上Flutter和Native不相上下，在低端机型上，Flutter会比Native更加的流畅，其实闲鱼团队在使用F">
<meta name="twitter:image" content="https://user-gold-cdn.xitu.io/2018/9/10/165c207777544a65?imageView2/0/w/1280/h/960/ignore-error/1">
  
    <link rel="alternative" href="/atom.xml" title="Grx Blog" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  <link rel="stylesheet" href="/css/style.css">
</head>

<body>
  <div id="container">
    <div class="left-col">
    <div class="overlay"></div>
<div class="intrude-less">
	<header id="header" class="inner">
		<a href="/" class="profilepic">
			
			<img lazy-src="/img/rufei.jpg" class="js-avatar">
			
		</a>

		<hgroup>
		  <h1 class="header-author"><a href="/">Grx</a></h1>
		</hgroup>

		
		<p class="header-subtitle">自我管理，知识管理，时间管理，阅读，语音写作，思维导图</p>
		

		
			<div class="switch-btn">
				<div class="icon">
					<div class="icon-ctn">
						<div class="icon-wrap icon-house" data-idx="0">
							<div class="birdhouse"></div>
							<div class="birdhouse_holes"></div>
						</div>
						<div class="icon-wrap icon-ribbon hide" data-idx="1">
							<div class="ribbon"></div>
						</div>
						
						<div class="icon-wrap icon-link hide" data-idx="2">
							<div class="loopback_l"></div>
							<div class="loopback_r"></div>
						</div>
						
						
						<div class="icon-wrap icon-me hide" data-idx="3">
							<div class="user"></div>
							<div class="shoulder"></div>
						</div>
						
					</div>
					
				</div>
				<div class="tips-box hide">
					<div class="tips-arrow"></div>
					<ul class="tips-inner">
						<li>菜单</li>
						<li>标签</li>
						
						<li>友情链接</li>
						
						
						<li>关于我</li>
						
					</ul>
				</div>
			</div>
		

		<div class="switch-area">
			<div class="switch-wrap">
				<section class="switch-part switch-part1">
					<nav class="header-menu">
						<ul>
						
							<li><a href="/">主页</a></li>
				        
							<li><a href="/tags/life">随笔</a></li>
				        
							<li><a href="/archives">所有文章</a></li>
				        
						</ul>
					</nav>
					<nav class="header-nav">
						<div class="social">
							
								<a class="github" target="_blank" href="https://github.com/ruixiaoguo" title="github">github</a>
					        
								<a class="weibo" target="_blank" href="https://weibo.com/u/3984935859?refer_flag=1005055010_" title="weibo">weibo</a>
					        
								<a class="rss" target="_blank" href="#" title="rss">rss</a>
					        
								<a class="zhihu" target="_blank" href="#" title="zhihu">zhihu</a>
					        
						</div>
					</nav>
				</section>
				
				
				<section class="switch-part switch-part2">
					<div class="widget tagcloud" id="js-tagcloud">
						<a href="/tags/OC/" style="font-size: 10px;">-OC</a> <a href="/tags/Android/" style="font-size: 10px;">Android</a> <a href="/tags/Apple-Watch/" style="font-size: 10px;">Apple Watch</a> <a href="/tags/Flutter/" style="font-size: 13.33px;">Flutter</a> <a href="/tags/Life/" style="font-size: 10px;">Life</a> <a href="/tags/Lottie/" style="font-size: 10px;">Lottie</a> <a href="/tags/MMKV/" style="font-size: 10px;">MMKV</a> <a href="/tags/MonkeyKing/" style="font-size: 10px;">MonkeyKing</a> <a href="/tags/OC/" style="font-size: 20px;">OC</a> <a href="/tags/RAC/" style="font-size: 11.67px;">RAC</a> <a href="/tags/Swift/" style="font-size: 15px;">Swift</a> <a href="/tags/WKWebView/" style="font-size: 10px;">WKWebView</a> <a href="/tags/WebView/" style="font-size: 10px;">WebView</a> <a href="/tags/Xcode/" style="font-size: 18.33px;">Xcode</a> <a href="/tags/appledoc/" style="font-size: 10px;">appledoc</a> <a href="/tags/hexo/" style="font-size: 11.67px;">hexo</a> <a href="/tags/ios/" style="font-size: 10px;">ios</a> <a href="/tags/life/" style="font-size: 16.67px;">life</a> <a href="/tags/xcode/" style="font-size: 10px;">xcode</a>
					</div>
				</section>
				
				
				
				<section class="switch-part switch-part3">
					<div id="js-friends">
					
			          <a target="_blank" class="main-nav-link switch-friends-link" href="http://blog.devtang.com">唐巧的博客</a>
			        
			          <a target="_blank" class="main-nav-link switch-friends-link" href="http://beyondvincent.com">破船之家</a>
			        
			          <a target="_blank" class="main-nav-link switch-friends-link" href="http://limboy.me">无网不剩</a>
			        
			          <a target="_blank" class="main-nav-link switch-friends-link" href="http://msching.github.io">码农人生</a>
			        
			          <a target="_blank" class="main-nav-link switch-friends-link" href="http://yulingtianxia.com">玉令天下</a>
			        
			          <a target="_blank" class="main-nav-link switch-friends-link" href="http://blog.leichunfeng.com">雷纯锋的技术博客</a>
			        
			          <a target="_blank" class="main-nav-link switch-friends-link" href="http://jax.cnblogs.com">包建强</a>
			        
			          <a target="_blank" class="main-nav-link switch-friends-link" href="http://blog.cnbang.net">bang</a>
			        
			        </div>
				</section>
				

				
				
				<section class="switch-part switch-part4">
				
					<div id="js-aboutme">知识管理，时间管理，自我管理，阅读，语音写作，思维导图，Wiz，TimeMeter</div>
				</section>
				
			</div>
		</div>
	</header>				
</div>

    </div>
    <div class="mid-col">
      <nav id="mobile-nav">
  	<div class="overlay">
  		<div class="slider-trigger"></div>
  		<h1 class="header-author js-mobile-header hide">Grx</h1>
  	</div>
	<div class="intrude-less">
		<header id="header" class="inner">
			<div class="profilepic">
			
				<img lazy-src="/img/rufei.jpg" class="js-avatar">
			
			</div>
			<hgroup>
			  <h1 class="header-author">Grx</h1>
			</hgroup>
			
			<p class="header-subtitle">自我管理，知识管理，时间管理，阅读，语音写作，思维导图</p>
			
			<nav class="header-menu">
				<ul>
				
					<li><a href="/">主页</a></li>
		        
					<li><a href="/tags/life">随笔</a></li>
		        
					<li><a href="/archives">所有文章</a></li>
		        
		        <div class="clearfix"></div>
				</ul>
			</nav>
			<nav class="header-nav">
				<div class="social">
					
						<a class="github" target="_blank" href="https://github.com/ruixiaoguo" title="github">github</a>
			        
						<a class="weibo" target="_blank" href="https://weibo.com/u/3984935859?refer_flag=1005055010_" title="weibo">weibo</a>
			        
						<a class="rss" target="_blank" href="#" title="rss">rss</a>
			        
						<a class="zhihu" target="_blank" href="#" title="zhihu">zhihu</a>
			        
				</div>
			</nav>
		</header>				
	</div>
</nav>

      <div class="body-wrap"><article id="post-流言终结者- Flutter和RN谁才是更好的跨端开发方案？" class="article article-type-post" itemscope itemprop="blogPost">
  
    <div class="article-meta">
      <a href="/2018/09/17/流言终结者- Flutter和RN谁才是更好的跨端开发方案？/" class="article-date">
  	<time datetime="2018-09-17T10:28:47.000Z" itemprop="datePublished">2018-09-17</time>
</a>
    </div>
  
  <div class="article-inner">
    
      <input type="hidden" class="isFancy" />
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      流言终结者- Flutter和RN谁才是更好的跨端开发方案？
    </h1>
  

      </header>
      
      <div class="article-info article-info-post">
        
	<div class="article-tag tagcloud">
		<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Flutter/">Flutter</a></li></ul>
	</div>

        

        <div class="clearfix"></div>
      </div>
      
    
    <div class="article-entry" itemprop="articleBody">
      
        <h1 id="流言终结者-Flutter和RN谁才是更好的跨端开发方案？"><a href="#流言终结者-Flutter和RN谁才是更好的跨端开发方案？" class="headerlink" title="流言终结者- Flutter和RN谁才是更好的跨端开发方案？"></a>流言终结者- Flutter和RN谁才是更好的跨端开发方案？</h1><p>论坛上很多小伙伴关心为什么闲鱼选择了Flutter而不选择其他跨端方案？站在质量的角度，高性能是一个很重的因素，我们使用Flutter重写了宝贝详情页之后，对比了Flutter和Native详情页的性能表现，结论是中高端机型上Flutter和Native不相上下，在低端机型上，Flutter会比Native更加的流畅，其实闲鱼团队在使用Flutter做详情页过程中，没有更多地关注性能优化，为了更快地上线，也是优先功能的实现，不过测试结果出来之后，却出乎意料地优于原先的Native的实现(具体的测试结果，属于敏感数据，要走披露流程，伤不起…)<br><a id="more"></a></p>
<p>但是这样很显然不能敷衍过去，仔细想了想，确实Flutter的定位并不是要替代Native，他只想做一个极致的跨端解决方案，所以还是要回到跨端解决方案的赛道，给您从性能角度比一比，谁才是更好的跨端开发方案？</p>
<h2 id="参赛选手"><a href="#参赛选手" class="headerlink" title="参赛选手"></a>参赛选手</h2><h2 id="Flutter"><a href="#Flutter" class="headerlink" title="[Flutter]"></a>[Flutter]</h2><p>Flutter is Google’s mobile app SDK for crafting high-quality native interfaces on iOS and Android in record time. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.</p>
<h2 id="REACT-NATIVE"><a href="#REACT-NATIVE" class="headerlink" title="[REACT NATIVE]"></a>[REACT NATIVE]</h2><p>We’re working on a large-scale rearchitecture of React Native to make it more flexible and integrate better with native infrastructure in hybrid JavaScript/native apps.</p>
<h2 id="鸣锣开赛"><a href="#鸣锣开赛" class="headerlink" title="鸣锣开赛"></a>鸣锣开赛</h2><h3 id="怎么比"><a href="#怎么比" class="headerlink" title="怎么比"></a>怎么比</h3><p>怎么比较确实伤脑筋，自己也写了一个Flutter 和 一个RN的App，但是实在太丑陋，担心大家关注点都到我的烂代码上了，所以在Github上找到了一个跨端开发高手Car Guo，用Flutter和RN分别实现的一个实际可用的App，Car Guo谦虚表示其实也写的比较粗糙，但是在我看来这个是具备真实使用场景的App（Github客户端App，提供丰富的功能，旨在更好的日常管理和维护个人Github），还是有代表性的<br>[Flutter] github.com/CarGuo/GSYG…<br>[REACT NATIVE] github.com/CarGuo/GSYG…</p>
<h3 id="场景"><a href="#场景" class="headerlink" title="场景"></a>场景</h3><ol>
<li>默认登录成功</li>
<li>“动态”页，点击搜索按钮，搜索关键字“Java”，正常速度浏览3页，等第4页加载完成后回退</li>
<li>点击“趋势”页Tab，浏览Feeds到页面底部，点击最底部的Item，进入Item后，浏览详情+浏览3页的动态后回退，到“我的”Tab页</li>
<li>查看“我的”Feeds到底部，点击右上角搜索按钮，搜索关键字“C”，浏览3页后，等第4页加载完成后场景结束<br>测试工具</li>
</ol>
<p>iOS<br>掌中测(iOS端)：CPU，内存<br>Instruments：FPS<br>Android<br>基于Adb的Shell脚本：CPU，内存，FPS</p>
<h2 id="测试机型"><a href="#测试机型" class="headerlink" title="测试机型"></a>测试机型</h2><ul>
<li>iOS：iPhone 5c 9.0.1 / iPhone 6s 10.3.2</li>
<li>Android：Xiaomi 2s 5.0.2 / Sumsung S8 7.0</li>
</ul>
<p>数据分析</p>
<h2 id="iOS"><a href="#iOS" class="headerlink" title="iOS"></a>iOS</h2><h3 id="iPhone-5c-9-0-1"><a href="#iPhone-5c-9-0-1" class="headerlink" title="iPhone 5c 9.0.1"></a>iPhone 5c 9.0.1</h3><p><img src="https://user-gold-cdn.xitu.io/2018/9/10/165c207777544a65?imageView2/0/w/1280/h/960/ignore-error/1" alt="avatar"></p>
<h3 id="iPhone-6s-10-3-2"><a href="#iPhone-6s-10-3-2" class="headerlink" title="iPhone 6s 10.3.2"></a>iPhone 6s 10.3.2</h3><p><img src="https://user-gold-cdn.xitu.io/2018/9/10/165c207772041f18?imageView2/0/w/1280/h/960/ignore-error/1" alt="avatar"></p>
<h2 id="测试结论"><a href="#测试结论" class="headerlink" title="测试结论"></a>测试结论</h2><ol>
<li>Flutter在低端和中端的iOS机型上，FPS的表现都优于RN</li>
<li>CPU的使用上Flutter在低端机上表现略差于RN，中端机型略优于RN</li>
<li>值得注意的是内存上的表现(上图红色箭头区域)，Flutter在低端机型上的起始内存和RN几乎一致，在中端机型上会多30M左右的内存(分析为Dart VM的内存)，可以想到这应该是Flutter针对低端和中端机型上内存策略是不一样的，可用内存少的机型，Dart VM的初始内存少，运行时进行分配(这样也可以理解为什么在低端机上带来了更多的CPU损耗)，中端机器上预分配了更多的VM内存，这样在处理时会更加的游刃有余，减少CPU的介入，带来更流畅的体验.<br>可以看出，Flutter团队在针对不同机型上处理更加的细腻，目的就是为了带来稳定流畅的体验。<br>Android<h3 id="Xiaomi-2s-5-0-2"><a href="#Xiaomi-2s-5-0-2" class="headerlink" title="Xiaomi 2s 5.0.2"></a>Xiaomi 2s 5.0.2</h3><img src="https://user-gold-cdn.xitu.io/2018/9/10/165c207776cfb444?imageView2/0/w/1280/h/960/ignore-error/1" alt="avatar"></li>
</ol>
<h3 id="Sumsung-S8-7-0"><a href="#Sumsung-S8-7-0" class="headerlink" title="Sumsung S8 7.0"></a>Sumsung S8 7.0</h3><p><img src="https://user-gold-cdn.xitu.io/2018/9/10/165c207776de1eb1?imageView2/0/w/1280/h/960/ignore-error/1" alt="avatar"></p>
<blockquote>
<p>注: MFS - Max Frame Space: 指的是去掉buffer之后的两帧的时间差</p>
</blockquote>
<p>测试结论</p>
<ol>
<li>Flutter在高低端机的CPU上的表现都优于RN，尤其在低端的小米2s上有着更优的表现</li>
<li>Android端在原来FPS基础上增加了流畅度的指标，FPS和流畅度的表现Flutter优于RN(计算规则见附参考文章)</li>
<li>Android端的内存也是值得关注的一点，在小米2s上起始内存Flutter明显比RN多40M，RN在测试过程中内存飞涨，Flutter相比之下会更稳定，内存上RN侧的代码是需要调优的，同一套代码Flutter在Android和iOS上并没有很大的差异，但是RN的却要在单端调优，Flutter在这项比拼上又更胜一筹。<br>比较奇怪的是三星S8上Flutter和RN的初始内存是一致的，猜测是RN也Android高端机型上也会预分配一些内存，具体细节还需要更进一步的研究。</li>
</ol>
<h2 id="升旗仪式"><a href="#升旗仪式" class="headerlink" title="升旗仪式"></a>升旗仪式</h2><p>看了之前的数据，做为裁判的我会把金牌颁给Flutter，在测试过程中的体验和数据上来看Flutter都优于RN，并且开发这个App的是一位Android的开发同学，Flutter和RN对于他来说都是全新的技术栈，Car Guo同学更倾向性地让大家得到一致性的使用体验，性能方面并没有投入太多的时间进行调优，由此看出Flutter在跨端开发上在同样投入的情况下，可以获得更佳的性能，更好的用户体验。</p>
<h2 id="一些思考"><a href="#一些思考" class="headerlink" title="一些思考"></a>一些思考</h2><p>拿到了这些数据，也感受到Flutter带来福利，那Flutter为什么可以做到这么流畅呢？Flutter是如何优化了渲染，Dart VM的Runtime是怎么玩的？请大家继续关注后续解密文章，感兴趣的同学欢迎加入闲鱼，成为跨端解决方案的领军者。<br>参考</p>
<ul>
<li><p>Android FPS&amp;流畅度: testerhome.com/topics/4775</p>
</li>
<li><p>Android 内存获取方式:dumpsys meminfo packageName</p>
</li>
<li><p>Android CPU 通过busybox 执行 top命令获取</p>
</li>
<li><p>iOS CPU获取方式：累计每个线程中的CPU利用率</p>
</li>
</ul>
<pre><code>for (j = 0; j &lt; thread_count; j++)
{
ATCPUDO *cpuDO = [[ATCPUDO alloc] init];
char name[256];
pthread_t pt = pthread_from_mach_thread_np(thread_list[j]);
if (pt) {
name[0] = &apos;\0&apos;;
__unused int rc = pthread_getname_np(pt, name, sizeof name);
cpuDO.threadid = thread_list[j];
cpuDO.identify = [NSString stringWithFormat:@&quot;%s&quot;,name];
} 
thread_info_count = THREAD_INFO_MAX;
kr = thread_info(thread_list[j], THREAD_BASIC_INFO,(thread_info_t)thinfo, &amp;thread_info_count);
if (kr != KERN_SUCCESS) {
return nil;
}
basic_info_th = (thread_basic_info_t)thinfo;
if (!(basic_info_th-&gt;flags &amp; TH_FLAGS_IDLE)) {
tot_sec = tot_sec + basic_info_th-&gt;user_time.seconds + basic_info_th-&gt;system_time.seconds;
tot_usec = tot_usec + basic_info_th-&gt;system_time.microseconds + basic_info_th-&gt;system_time.microseconds;
tot_cpu = tot_cpu + basic_info_th-&gt;cpu_usage / (float)TH_USAGE_SCALE * 100.0;
cpuDO.usage = basic_info_th-&gt;cpu_usage / (float)TH_USAGE_SCALE * 100.0;
if (container) {
[container addObject:cpuDO];
}
}
} // for each thread
</code></pre><ul>
<li><p>iOS 内存获取方式：测试过程中使用的是phys_footprint，是最准确的物理内存，很多开源软件用的是resident_size(这个值代表的是常驻内存，并不能很好地表现出真实内存变化，这可以另开文章细谈)</p>
<pre><code>if ([[UIDevice currentDevice].systemVersion intValue] &lt; 10) {
kern_return_t kr;
mach_msg_type_number_t info_count;
task_vm_info_data_t vm_info;
info_count = TASK_VM_INFO_COUNT;
kr = task_info(mach_task_self(), TASK_VM_INFO_PURGEABLE, (task_info_t)&amp;vm_info,&amp;info_count);
if (kr == KERN_SUCCESS) {
return (vm_size_t)(vm_info.internal + vm_info.compressed - vm_info.purgeable_volatile_pmap);
}
return 0;
}

task_vm_info_data_t vmInfo;
mach_msg_type_number_t count = TASK_VM_INFO_COUNT;
kern_return_t result = task_info(mach_task_self(), TASK_VM_INFO, (task_info_t) &amp;vmInfo, &amp;count);
if (result != KERN_SUCCESS)
return 0;
return (vm_size_t)vmInfo.phys_footprint;
</code></pre></li>
</ul>

      
    </div>
    
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2018/09/18/MonkeyKing：无需集成第三方直接分享登录/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption"><</strong>
      <div class="article-nav-title">
        
          MonkeyKing：无需集成第三方直接分享登录
        
      </div>
    </a>
  
  
    <a href="/2018/09/10/Lottie初级教程：打造iOS APP完美动画/" id="article-nav-older" class="article-nav-link-wrap">
      <div class="article-nav-title">Lottie初级教程：打造iOS APP完美动画</div>
      <strong class="article-nav-caption">></strong>
    </a>
  
</nav>

  
</article>


<div class="share_jia">
	<!-- JiaThis Button BEGIN -->
	<div class="jiathis_style">
		<span class="jiathis_txt">Share to: &nbsp; </span>
		<a class="jiathis_button_facebook"></a> 
    <a class="jiathis_button_twitter"></a>
    <a class="jiathis_button_plus"></a> 
    <a class="jiathis_button_tsina"></a>
		<a class="jiathis_button_cqq"></a>
		<a class="jiathis_button_douban"></a>
		<a class="jiathis_button_weixin"></a>
		<a class="jiathis_button_tumblr"></a>
    <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	</div>
	<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1405949716054953" charset="utf-8"></script>
	<!-- JiaThis Button END -->
</div>






<div class="duoshuo">
	<!-- 多说评论框 start -->
	<div class="ds-thread" data-thread-key="流言终结者- Flutter和RN谁才是更好的跨端开发方案？" data-title="流言终结者- Flutter和RN谁才是更好的跨端开发方案？" data-url="http://yoursite.com/2018/09/17/流言终结者- Flutter和RN谁才是更好的跨端开发方案？/"></div>
	<!-- 多说评论框 end -->
	<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
	<script type="text/javascript">
	var duoshuoQuery = {short_name:"true"};
	(function() {
		var ds = document.createElement('script');
		ds.type = 'text/javascript';ds.async = true;
		ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
		ds.charset = 'UTF-8';
		(document.getElementsByTagName('head')[0] 
		 || document.getElementsByTagName('body')[0]).appendChild(ds);
	})();
	</script>
	<!-- 多说公共JS代码 end -->
</div>




</div>
      <footer id="footer">
  <div class="outer">
    <div id="footer-info">
    	<div class="footer-left">
    		&copy; 2019 Grx
    	</div>
      	<div class="footer-right">
      		<a href="http://hexo.io/" target="_blank">Hexo</a>  Theme <a href="https://github.com/litten/hexo-theme-yilia" target="_blank">Yilia</a> by Litten
      	</div>
    </div>
  </div>
</footer>
    </div>
    
  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">


<script>
	var yiliaConfig = {
		fancybox: true,
		mathjax: true,
		animate: true,
		isHome: false,
		isPost: true,
		isArchive: false,
		isTag: false,
		isCategory: false,
		open_in_new: false
	}
</script>
<script src="http://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min.js"></script>
<script src="/js/main.js"></script>






<script type="text/x-mathjax-config">
MathJax.Hub.Config({
    tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"]  ],
        processEscapes: true,
        skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
    }
});

MathJax.Hub.Queue(function() {
    var all = MathJax.Hub.getAllJax(), i;
    for(i=0; i < all.length; i += 1) {
        all[i].SourceElement().parentNode.className += ' has-jax';                 
    }       
});
</script>

<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>


  </div>
</body>
</html>